'use strict';

let list_fn = async (ctx,next) => {
    ctx.body = '人有悲欢离合';
}

let add_fn = async(ctx,next) => {
    ctx.body = '月有阴晴圆缺';
}
let edit_fn = async (ctx,next) => {
    ctx.body = '此事古难全';
}

let delete_fn= async (ctx,next) => {
    ctx.body='起舞弄清影';
}
let details_fn=async(ctx,next)=>{
    ctx.body='花海';
}


module.exports={
    '/users':['get',list_fn],
    '/users/add':['post',add_fn],
    '/users/edit':['put',edit_fn],
    '/users/delete':['delete',delete_fn],
    '/users/details':['get',details_fn]
}